<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>提现</title>
		<!--标准mui.css，公共样式-->
		<link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
		<link rel="stylesheet" type="text/css" href="../css/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="../css/public.css"/>
		<!--定义样式-->
		<link rel="stylesheet" type="text/css" href="../css/Recharge.css"/>
	</head>
	<body ng-app='app' ng-controller='WithdrawalsController'>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-icon mui-icon-left-nav mui-pull-left color6" href="wallet.html"></a>
			<h1 class="mui-title color6">提现</h1> 
			<a href="withdrawals_record.html" class="mui-pull-right mui-icon"><h5 class="withdrawals colorP">记录</h5></a>			
		</header>
		<div class="mui-content">
			<div class="p_lr15 p_tb10 b1 m_t16 bg_white mui-clearfix">
				<span class="mui-pull-left lh44">充值金额</span>
				<a class="mui-pull-right color3 input_moneyBox"><input type="number" placeholder="输入金额"/>元</a>
			</div>
			<p class="withdrawals p_tb11_lr15">当前余额<span id="cur_balance">{{info.balance}}</span>元，<a id="withdrawals_all" class="colorP">全部提现</a></p>			
		    <button type="button" class="mui-btn mui-btn-green w80 m_lr10 m_t40 p_tb11_lr15 font16 bg_P b_r8" disabled id="confirm_btn">确定提现</button>
		    <!--司机端提现的时候显示 去掉('mui-hidden')--><p class="color_green p_tb20_lr40 mui-hidden">注：提现最少100元起，且余额不能少于100元， 否则会影响您的正常接单。</p>
		</div>
	</body>
	<!-- Mui core JavaScript-->
	<script type="text/javascript" src="../js/mui.min.js"></script>
	<script type="text/javascript" src="../js/appconfig.js"></script>
	<script type="text/javascript" src="../js/jquery-2.2.4.min.js"></script>
	<script src="../js/angular1.2.0.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" src="../js/public.js"></script>
	<script src="../js/app/Withdrawals.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$('input[type=number]').keyup(function(){
			var v=$('input[type=number]').val();
			if(!v){
				$('#confirm_btn').attr('disabled',true);
			} else{
				$('#confirm_btn').attr('disabled',false);
			}
		})
		//提现执行
		$('#confirm_btn').on('tap',function(){
			tool.openNewPage('withdrawals_record.html');
		})
		//全部提现
		$('#withdrawals_all').on('tap',function(){
			$('input[type=number]').val($('#cur_balance').html());
			$('#confirm_btn').attr('disabled',false);
		})
	</script>
</html>